<template>
  <div class="content-block">
    <div class="info-head">{{ title }}</div>
    <div class="info-content">
      <v-chart
        :option="chartOption" style="width: 94%;height: 400px;margin-left: auto;margin-right: auto;"
        :theme="chartTheme" autoresize
      ></v-chart>
    </div>
  </div>
</template>

<script>
import MixinVchartTheme from '@/mixins/mixin-vchart-theme';

export default {
  name: 'industry-chart',
  mixins: [MixinVchartTheme],
  props: {
    title: String,
    chartOption: {
      type: Object,
      default () {
        return {}
      }
    }
  },
}
</script>

<style lang="scss" scoped>
@import "../../assets/style/variable.scss";

.content-block {
  background: white;
  border-radius: 4px;

  .info-head {
    padding: 20px $gutter 0 $gutter;
    font-size: 16px;
  }

  .info-content {
    padding-top: 40px;
  }
}
</style>
